package ro.romanescu.useradmin;

/**
 * Right interface.
 * All available rights within application domain will implement this
 * interface, and links between role and rights will be based on the
 * unique class name (fully qualified class name).
 * 
 * For example Role administrator may have assigned the right
 * com.mycompany.LoginRight, thus the application will check the right
 * as follows: <code>if( role.hasRight( LoginRight.class ) ) ... </code>.
 * @version 1.0
 */
public interface IRight
{
  
  
  /**
   * Retrieve description of this right.
   * @return Description of this right in human language
   */
  String getDescription();
  
  
  /**
   * Set the description of the right.
   * @param description Description in human language
   */
  void setDescription( String description );
}
